import request from '@/utils/request'

export function queryForList(params) {
    return request({
      url: '/admin/wechatUser/queryForList',
      contentType: 'application/json;charset=utf-8',
      method: 'post',
      dataType: 'json',
      data: params,
      headers: {
        'urlType': 'admin'
      }
    })
  }
  
  export function getByIdMoreDetail(dataId) {
    return request({
      url: '/admin/wechatUser/getByIdMoreDetail/' + dataId,
      method: 'get',
      dataType: 'json',
      headers: {
        'urlType': 'admin'
      }
    })
  }

  export function createOrUpdate(params) {
    return request({
      url: '/admin/wechatUser/createOrUpdate',
      contentType: 'application/json;charset=utf-8',
      method: 'post',
      dataType: 'json',
      data: params,
      headers: {
        'urlType': 'admin'
      }
    })
  }
  
  export function deleteData(dataId) {
    return request({
      url: '/admin/wechatUser/delete/' + dataId,
      method: 'post',
      dataType: 'json',
      headers: {
        'urlType':'admin'
      }
    })
  }